package org.example.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.example.dao.Song;

import java.util.List;

@Mapper
public interface SongMapper {

    @Select("select * from song")
    List<Song> getSongList();


    List<Song> search(@Param("text") String text);

    Integer addSong(Song song);

    Integer updateSongComment(Song song);
    Integer updateSongLikeCount(Song song);

    Song getSongById(Integer id);
}
